import React from 'react';
import {
    View,
    Text,
    Image,
    TouchableOpacity,
} from 'react-native';
import NavigationUtil from "../../navigator/NavigationUtil";
import Entypo from "react-native-vector-icons/Entypo";
import {Heading1} from '../../public/widget/text';
import styles from './style/cardItem';
import {BaseUrl} from '../../public/dao/DataStore';
export default class CardItem extends React.Component {
    render() {
        const {infoDatas} = this.props;
        let items = infoDatas.item ? infoDatas.item:{};
        return (
        <TouchableOpacity onPress={()=>{
            NavigationUtil.goPage({...items},'CreditcardDetail')
        }}>
            <View style={styles.ViewItem}>
                <Text>待开发</Text>
                {/* <View>
                    <Heading1 style={styles.textH1}>
                        {items.name}
                    </Heading1>
                    <View style={styles.cardItem}>
                        <Text style={styles.cardText}>{items.advantage}</Text>
                    </View>
                    <View style={styles.dotList}>
                        <Entypo
                            name={'dot-single'}
                            size={20}
                        />
                        <Text numberOfLines={1} style={styles.bottomFont}>{items.describe}</Text>
                    </View>
                </View>
                <View style={styles.imgView}>
                    <Image style={styles.image} resizeMode={"contain"} source={{uri:BaseUrl+'/'+items.image_url}}/>
                </View> */}
            </View>
        </TouchableOpacity>)
    }
}
